<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html >
    <head>
        <meta charset="utf-8" />
        <link rel="stylesheet" type="text/css" href="/Public/Home/Support/css/layout.css" media="all" />
        <title>2015你有啥梦想？　　　　　　　　　　　　　　　__<?php echo ($dream["dream_content"]); ?></title>
        <meta name="description" content="<?php echo (msubstr($dream["dream_content"],0,22)); ?>" />
        <meta name="keywords" content="<?php echo ($dream["dream_title"]); ?>" />
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
        <meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
        <!-- Mobile Devices Support @begin -->
        <meta content="application/xhtml+xml;charset=UTF-8" http-equiv="Content-Type">
        <meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
        <meta content="no-cache" http-equiv="pragma">
        <meta content="0" http-equiv="expires">
        <meta content="telephone=no, address=no" name="format-detection">
        <meta content="width=device-width, initial-scale=1.0" name="viewport">
        <meta name="apple-mobile-web-app-capable" content="yes" />
        <!-- apple devices fullscreen -->
        <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
        <!-- Mobile Devices Support @end -->
        <script type="text/javascript" src="/Public/Home/Support/js/jquery.js"></script>
        <script type="text/javascript">
            $(document).ready(function () {
                $('#support_button').hide();
                $('#is_support_button').hide();
                var is_support = "<?php echo ($is_support); ?>";
                if (is_support) {
                    $('#is_support_button').show();
                    $('#support_button').hide();
                } else {
                    $('#support_button').show();
                    $('#is_support_button').hide();
                }
                $('#support_button').click(function () {
                    /*<?php if(empty($_GET['code'])): ?>*/
                    window.location.href = "<?php echo (DREAM_URL); ?>/index.php?s=/Support/doSupport/state/<?php echo ($dream["dream_id"]); ?>.html";
                    /*<?php else: ?>*/

                    /*<?php if(empty($_SESSION['weixin_info'])): ?>"*/
                    window.location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=<?php echo C('APP_ID');?>"
                            + "&redirect_uri=<?php echo urlencode(DREAM_URL . '/index.php?s=/Support/doSupport.html');?>"
                            + "&response_type=code&scope=snsapi_userinfo&state=<?php echo ($dream["dream_id"]); ?>#wechat_redirect";
                    /*<?php else: ?>*/
                    window.location.href = "<?php echo (DREAM_URL); ?>/index.php?s=/Support/doSupport/state/<?php echo ($dream["dream_id"]); ?>.html";
                    /*<?php endif; ?>*/

                    /*<?php endif; ?>*/
                });
                $('#black_button').click(function () {
                    $('#black_notice').remove();
                });
            });
        </script>
    </head>
    <body class="body" >
        <img src="/Public/Home/Support/images/my.jpg" style="display:none;" />
        <div class="dream_banner">
            <img src="/Public/Home/Support/images/banner1.jpg"/>
        </div>	
        <div class="dream_box">
            <ul class="head">
                <label>梦想：<?php echo ($dream["dream_title"]); ?></label>
            </ul>
            <ul class="message">
                <div class="photo">
                    <img src="<?php echo ($user["user_icon"]); ?>"/>
                </div>
                <div class="personal">
                    <p><?php echo ($user["user_name"]); ?></p>
                    <?php if(is_array($user["school"])): $i = 0; $__LIST__ = $user["school"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><p><?php echo ($vo["school_name"]); ?><label><?php echo ($vo["grade_name"]); ?></label></p><?php endforeach; endif; else: echo "" ;endif; ?>
                </div>
            </ul>
            <ul class="text">
                <p><?php echo ($dream["dream_content"]); ?></p>
            </ul>
        </div>
        <div class="dream_btn">
            <p>支持数：<?php echo ($count); ?></p>
            <button id="is_support_button" type="button" value="" class="pre">已支持</button>
            <button id="support_button" type="button" value="" class="blue">支持TA</button>
            <button type="button" value="" onclick="window.location.href = '<?php echo (DREAM_URL); ?>/index.php?s=/Index/addDream/dream_id/<?php echo ($modify_id); ?>.html';">我也说一个</button>
            <button type="button" value="" onclick="window.location.href = '<?php echo (DREAM_URL); ?>/index.php?s=/Index/index.html';">去看看排行</button>
        </div>
        <?php if(($dream["fist_show"]) == "1"): ?><div id="black_notice" class="up_black" align="center">
            <!--<p>大声的告诉你的小伙伴们：<br/>这就是我的梦想，<br/>你们敢支持我吗？</p>-->
            <img src="/Public/Home/Support/images/jiantou.png" class="img1"/>
            <img src="/Public/Home/Support/images/text.png" class="img2"/>
            <button id="black_button" type="button" value="">这就去</button>
        </div><?php endif; ?>
    </body>
</html>